package com.lagou;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

/**
 * 记录接口调用的性能统计
 */
public class InvocationInfo {
    /**
     * 响应时间，以毫秒为单位
     */
    private List<Long> responseTimes = Collections.synchronizedList(new LinkedList<>());

    /**
     * 统计的开始时间，以毫秒为单位
     */
    private volatile long startTime;

    public List<Long> getResponseTimes() {
        return responseTimes;
    }

    public void setResponseTimes(List<Long> responseTimes) {
        this.responseTimes = responseTimes;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }
}
